package com.af.financeomine.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

import org.hibernate.validator.Max;
import org.hibernate.validator.NotEmpty;
import org.hibernate.validator.NotNull;
/**
 * @author  alefabi
 */
@Entity
public class Grupo implements Serializable {

	private static final long serialVersionUID = -2458862781272985636L;

	/**
	 * @uml.property  name="id"
	 */
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private Long id;
	/**
	 * @uml.property  name="nome"
	 */
	@Column(length=80)
	@Max(80)
	@NotNull
	@NotEmpty
	private String nome;
	
	public Grupo() {
	}
	
	/**
	 * @return
	 * @uml.property  name="id"
	 */
	public Long getId() {
		return id;
	}

	/**
	 * @param id
	 * @uml.property  name="id"
	 */
	public void setId(Long id) {
		this.id = id;
	}

	/**
	 * @return
	 * @uml.property  name="nome"
	 */
	public String getNome() {
		return nome;
	}

	/**
	 * @param nome
	 * @uml.property  name="nome"
	 */
	public void setNome(String nome) {
		this.nome = nome;
	}
	
	
}
